package com.cx.afc_android.ahttp.request;

import com.hjq.http.config.IRequestApi;
import com.hjq.http.config.IRequestServer;

import java.io.File;
/**
 * 上传图片
 * Created by chenxiang on 2020/11/9.
 */

public class UpdateImageApi  implements IRequestServer, IRequestApi {

    @Override
    public String getHost() {
        return "https://xx/";
    }

    @Override
    public String getApi() {
        return "xx/";
    }

    /** 本地图片 */
    private File image;

    public UpdateImageApi(File image) {
        this.image = image;
    }

    public UpdateImageApi setImage(File image) {
        this.image = image;
        return this;
    }
}
